﻿package com.eitb.programas.olentzero09.botones {
	import flash.text.*;
	import flash.events.*;
	import flash.display.*;
	
	import com.eitb.botones.*;

	public class BotonJugar extends Boton {
		public function BotonJugar():void {
			this.addEventListener(MouseEvent.MOUSE_DOWN,downBoton);
			this.addEventListener(MouseEvent.MOUSE_UP,upBoton);
			this.addEventListener(MouseEvent.MOUSE_OVER,overBoton);
			this.addEventListener(MouseEvent.MOUSE_OUT,outBoton);			
		}
		private function downBoton(event:MouseEvent):void {
			this.gotoAndStop(Boton.SELECCIONADO);
		}
		private function upBoton(event:MouseEvent):void {
			this.gotoAndStop(Boton.REPOSO);
			
		}
		private function overBoton(event:MouseEvent):void {
			this.gotoAndStop(Boton.SELECCIONADO);
		}
		private function outBoton(event:MouseEvent):void {
			this.gotoAndStop(Boton.REPOSO);
		}
		public function setText(text:String):void {
			this.texto.text = text;
		}
	}
}